• Home
  • Raw
  • Download

Lines Matching full:we

15 As a short example we can import the following functions quite easily:
51 In order to import all the methods in the following library, we will use the [classref smart_librar…
59 Alright, now we have the definition for the plugin, so we use it in the following full-fleshed exam…
63 At first we setup the smart library. Mind that the alias class is needed to provide a type-alias fo…
66 …class, we will need to allocate memory. That of course means, that we need to know the size; unfor…
68 So we import it, call it and allocate memory.
72 Now, we have the memory size and a reference with our alias type. In order to use it, we need to re…
76we of course need to initialize it, i.e. call the constructor. The Itanium ABI may also implement …
80 So since the class is now initialized, we can call the name method. If the function is const and/or…
92 Since we are finished, we call the destructor of the class.
104 We will take the same class and import the same methods, but do it with the import features.
108 We put the library into a shared_pointer, because every import will hold such a pointer to it. That…
112 Similar to the previous example, we need the size of the class.
116 On a side note, we can also import variable easily with that function.
120 We do the forward declaration on the first call, and invoke the constructor directly. This is quite…
128 For overloaded functions, we can import them as groups, which will give us an object containing the…
132 Additionally, we can access the typeinfo like this.
144 If we have this in our plugin:
158 we can import them all at once, with the following command: