|
| ~ChildArrayField () override |
| Implementation of ChildArrayField<>
|
|
| operator std::vector< std::shared_ptr< DataType >> () |
|
| operator std::vector< std::shared_ptr< const DataType >> () const |
|
size_t | size () const override |
| Get the number of child objects. More...
|
|
void | clear () override |
| Clears the container.
|
|
std::shared_ptr< ObjectHandle > | at (size_t index) override |
| Get a raw pointer to the object at a particular index. More...
|
|
std::vector< std::shared_ptr< DataType > > | objects () |
|
std::vector< std::shared_ptr< const DataType > > | objects () const |
|
void | setObjects (std::vector< std::shared_ptr< DataType >> &objects) |
| Assign objects to the field, replacing the current child objects.
|
|
std::shared_ptr< DataType > | operator[] (size_t index) const |
|
void | push_back (std::shared_ptr< DataType > pointer) |
| Assign a shared pointer.
|
|
void | push_back_obj (std::shared_ptr< ObjectHandle > obj) override |
| Assign a shared pointer.
|
|
void | insert (size_t index, std::shared_ptr< DataType > pointer) |
|
void | insertAt (size_t index, std::shared_ptr< ObjectHandle > obj) override |
| Insert an object at a particular index. Ownership will be taken. More...
|
|
void | erase (size_t index) override |
| Removes the pointer at index from the container and deletes the object pointed to.
|
|
std::vector< std::shared_ptr< ObjectHandle > > | childObjects () override |
|
std::vector< std::shared_ptr< const ObjectHandle > > | childObjects () const override |
|
void | removeChildObject (std::shared_ptr< const ObjectHandle > object) |
| Removes all instances of object pointer from the container without deleting the object.
|
|
std::string | dataType () const override |
|
bool | isReadable () const override |
|
bool | isWritable () const override |
|
void | setAccessor (std::unique_ptr< ChildArrayFieldAccessor > accessor) override |
| Set a new accessor. More...
|
|
virtual std::string | childClassKeyword () const override |
| Get the class keyword of the contained child(ren)
|
|
Public Member Functions inherited from caffa::ChildArrayFieldHandle |
bool | empty () const override |
| Check if the child array field is empty. More...
|
|
Public Member Functions inherited from caffa::ChildFieldBaseHandle |
void | accept (Inspector *visitor) const override |
|
void | accept (Editor *editor) override |
|
Public Member Functions inherited from caffa::FieldHandle |
std::string | keyword () const |
|
ObjectHandle * | ownerObject () |
|
const ObjectHandle * | ownerObject () const |
|
void | addCapability (std::unique_ptr< FieldCapability > capability) |
|
template<typename CapabilityType > |
CapabilityType * | capability () |
|
template<typename CapabilityType > |
const CapabilityType * | capability () const |
|
bool | isDeprecated () const |
|
void | markDeprecated () |
|
void | setDocumentation (const std::string &documentation) |
|
const std::string & | documentation () const |
|
template<typename DataTypePtr>
class caffa::ChildArrayField< DataTypePtr >
Field class to handle a collection of Object derived pointers The ChildArrayField will take over ownership of any object assigned to it.