|
Interior-point-optimisation
1.0-1
Interior-pointoptimisationlibrary
|
Shared pointer to ipo::Function object. More...
#include <SharedFunctionPtr.hpp>

Public Member Functions | |
| SharedFunctionPtr () | |
| The default constructor is only really useful for assigning to. More... | |
| SharedFunctionPtr (ipo_function::Function *function) | |
| Construct from a pointer to a function. More... | |
| SharedFunctionPtr (ipo_function::Function &function) | |
| Construct from a Function object. More... | |
| SharedFunctionPtr (SharedFunctionPtr const &v) | |
| The copy constructor. More... | |
| SharedFunctionPtr & | operator= (SharedFunctionPtr const &v) |
| The assignment operator. More... | |
| ~SharedFunctionPtr () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| SharedFunctionPtr (SharedFunctionPtr &&v) | |
| Move constructor. More... | |
| SharedFunctionPtr & | operator= (SharedFunctionPtr &&v) |
| Move operator. More... | |
| bool | operator== (SharedFunctionPtr const &v) const |
| Two SharedFunctionPtr are identically equal if they point to the same object. More... | |
| bool | operator!= (SharedFunctionPtr const &v) const |
| Two SharedFunctionPtr are different equal if they point to different objectd. More... | |
| void | swap (SharedFunctionPtr &v) |
| Swap two SharedFunctionPtr objects. More... | |
| ipo_function::Function & | operator* () const |
| Get a reference to the function. More... | |
| ipo_function::Function * | operator-> () const |
| Get a pointer to the function. More... | |
| ipo_function::Function * | get () const |
| Get the gsl_SharedFunctionPtr. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_SharedFunctionPtr. More... | |
| size_t | use_count () const |
| Find how many SharedFunctionPtr objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
Private Attributes | |
| ipo_function::Function * | pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
| bool | owner |
| Ownership flag. More... | |
Shared pointer to ipo::Function object.
Definition at line 31 of file SharedFunctionPtr.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 36 of file SharedFunctionPtr.hpp.
References count, owner, and pointer.
Referenced by operator=().
|
inlineexplicit |
Construct from a pointer to a function.
This constructor should be used to with a pointer to a Function object that is not later explicitly deleted.
| function | A pointer to a Function object |
Definition at line 47 of file SharedFunctionPtr.hpp.
|
inlineexplicit |
Construct from a Function object.
In this case the Function object must not go out of scope before this does.
| function | A Function object |
Definition at line 63 of file SharedFunctionPtr.hpp.
|
inline |
The copy constructor.
This creates a new reference to the SharedFunctionPtr.
| v | The SharedFunctionPtr to copy. |
Definition at line 75 of file SharedFunctionPtr.hpp.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 95 of file SharedFunctionPtr.hpp.
|
inline |
Move constructor.
| v | The SharedFunctionPtr to move. |
Definition at line 107 of file SharedFunctionPtr.hpp.
References count, and ipo::swap().
|
inline |
Get the gsl_SharedFunctionPtr.
Definition at line 176 of file SharedFunctionPtr.hpp.
References pointer.
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_SharedFunctionPtr Definition at line 193 of file SharedFunctionPtr.hpp.
|
inline |
Two SharedFunctionPtr are different equal if they point to different objectd.
| v | The SharedFunctionPtr to be compared with this |
false or true according as this and v do not point to the same object Definition at line 136 of file SharedFunctionPtr.hpp.
References operator==().
|
inline |
Get a reference to the function.
Definition at line 151 of file SharedFunctionPtr.hpp.
References pointer.
|
inline |
Get a pointer to the function.
Definition at line 156 of file SharedFunctionPtr.hpp.
References pointer.
|
inline |
The assignment operator.
This copies elementwise.
| v | The SharedFunctionPtr to copy |
Definition at line 82 of file SharedFunctionPtr.hpp.
|
inline |
Move operator.
| v | The SharedFunctionPtr to move. |
Definition at line 118 of file SharedFunctionPtr.hpp.
References SharedFunctionPtr().
|
inline |
Two SharedFunctionPtr are identically equal if they point to the same object.
| v | The SharedFunctionPtr to be compared with this |
true or false according as this and v point to the same object Definition at line 128 of file SharedFunctionPtr.hpp.
References pointer.
Referenced by operator!=().
|
inline |
Swap two SharedFunctionPtr objects.
This works even if the SharedFunctionPtr objects have different sizes because it swaps pointers.
| v | The SharedFunctionPtr to swap with this. |
Definition at line 143 of file SharedFunctionPtr.hpp.
References count, pointer, and ipo::swap().
|
inline |
Find if this is the only object sharing the gsl_SharedFunctionPtr.
true or falses according as this is the only SharedFunctionPtr object sharing the gsl_SharedFunctionPtr Definition at line 182 of file SharedFunctionPtr.hpp.
|
inline |
Find how many SharedFunctionPtr objects share this pointer.
Definition at line 187 of file SharedFunctionPtr.hpp.
References count.
|
private |
The shared reference count.
Definition at line 165 of file SharedFunctionPtr.hpp.
Referenced by operator=(), SharedFunctionPtr(), swap(), use_count(), and ~SharedFunctionPtr().
|
private |
Ownership flag.
Definition at line 169 of file SharedFunctionPtr.hpp.
Referenced by operator=(), SharedFunctionPtr(), and ~SharedFunctionPtr().
|
private |
The shared pointer.
Definition at line 161 of file SharedFunctionPtr.hpp.
Referenced by get(), operator*(), operator->(), operator=(), operator==(), SharedFunctionPtr(), swap(), and ~SharedFunctionPtr().