#include <core/object.h>
Public Types | |
enum | InitializedFlags { Initialized } |
enum | Type { COORD = -9 , COORDWRADIUS = -8 , DATABASE = -7 , UNKNOWN = -1 , EMPTY = 1 , PLACEHOLDER = 11 , TEXTURE1D = 16 , POINTS = 18 , SPHERES = 19 , LINES = 20 , TUBES = 21 , TRIANGLES = 22 , POLYGONS = 23 , UNSTRUCTUREDGRID = 24 , UNIFORMGRID = 25 , RECTILINEARGRID = 26 , STRUCTUREDGRID = 27 , QUADS = 28 , VERTEXOWNERLIST = 95 , CELLTREE1 = 96 , CELLTREE2 = 97 , CELLTREE3 = 98 , NORMALS = 99 , VEC = 100 } |
typedef std::shared_ptr< Object > | ptr |
typedef std::shared_ptr< const Object > | const_ptr |
typedef ObjectData | Data |
Public Member Functions | |
template<class Interface > | |
const Interface * | getInterface () const |
std::shared_ptr< const Object > | object () const override |
virtual | ~Object () |
bool | operator== (const Object &other) const |
bool | operator!= (const Object &other) const |
bool | isComplete () const |
virtual std::set< Object::const_ptr > | referencedObjects () const |
check whether all references have been resolved More... | |
Object::ptr | clone () const |
virtual Object::ptr | cloneInternal () const =0 |
Object::ptr | cloneType () const |
virtual Object::ptr | cloneTypeInternal () const =0 |
virtual void | refresh () const |
refresh cached pointers from shm More... | |
virtual bool | check () const |
virtual void | updateInternals () |
virtual bool | isEmpty () const |
virtual bool | isEmpty () |
shm_handle_t | getHandle () const |
Type | getType () const |
std::string | getName () const |
int | getBlock () const |
int | getNumBlocks () const |
double | getRealTime () const |
int | getTimestep () const |
int | getNumTimesteps () const |
int | getIteration () const |
int | getExecutionCounter () const |
int | getCreator () const |
Matrix4 | getTransform () const |
void | setBlock (const int block) |
void | setNumBlocks (const int num) |
void | setRealTime (double time) |
void | setTimestep (const int timestep) |
void | setNumTimesteps (const int num) |
void | setIteration (const int num) |
void | setExecutionCounter (const int count) |
void | setCreator (const int id) |
void | setTransform (const Matrix4 &transform) |
const Meta & | meta () const |
void | setMeta (const Meta &meta) |
void | addAttribute (const std::string &key, const std::string &value="") |
void | setAttributeList (const std::string &key, const std::vector< std::string > &values) |
virtual void | copyAttributes (Object::const_ptr src, bool replace=true) |
bool | hasAttribute (const std::string &key) const |
std::string | getAttribute (const std::string &key) const |
std::vector< std::string > | getAttributes (const std::string &key) const |
std::vector< std::string > | getAttributeList () const |
bool | addAttachment (const std::string &key, Object::const_ptr att) const |
bool | hasAttachment (const std::string &key) const |
void | copyAttachments (Object::const_ptr src, bool replace=true) |
Object::const_ptr | getAttachment (const std::string &key) const |
bool | removeAttachment (const std::string &key) const |
int | ref () const |
int | unref () const |
int | refcount () const |
template<class Archive > | |
void | saveObject (Archive &ar) const |
Data * | d () const |
Static Public Member Functions | |
static const char * | toString (Type v) |
static const char * | typeName () |
static Object * | createEmpty (const std::string &name=std::string()) |
static std::shared_ptr< Object > | as (std::shared_ptr< Object > ptr) |
static std::shared_ptr< const Object > | as (std::shared_ptr< const Object > ptr) |
template<class Archive > | |
static Object * | loadObject (Archive &ar) |
Protected Member Functions | |
Object (Data *data) | |
Object () | |
Protected Member Functions inherited from vistle::ObjectInterfaceBase | |
virtual | ~ObjectInterfaceBase () |
Static Protected Member Functions | |
static void | publish (const Data *d) |
static Object * | create (Data *) |
Protected Attributes | |
Data * | m_data |
Friends | |
class | Shm |
class | ObjectTypeRegistry |
struct | ObjectData |
template<class ObjType > | |
class | shm_obj_ref |
void | Shm::markAsRemoved (const std::string &name) |
typedef std::shared_ptr<const Object> vistle::Object::const_ptr |
typedef ObjectData vistle::Object::Data |
typedef std::shared_ptr<Object> vistle::Object::ptr |
enum vistle::Object::Type |
|
virtual |
|
protected |
|
protected |
bool vistle::Object::addAttachment | ( | const std::string & | key, |
Object::const_ptr | att | ||
) | const |
void vistle::Object::addAttribute | ( | const std::string & | key, |
const std::string & | value = "" |
||
) |
|
inlinestatic |
|
virtual |
Object::ptr vistle::Object::clone | ( | ) | const |
|
pure virtual |
Object::ptr vistle::Object::cloneType | ( | ) | const |
|
pure virtual |
void vistle::Object::copyAttachments | ( | Object::const_ptr | src, |
bool | replace = true |
||
) |
|
virtual |
Reimplemented in vistle::DataBase, vistle::RectilinearGrid, vistle::StructuredGrid, and vistle::UniformGrid.
|
static |
|
inline |
Object::const_ptr vistle::Object::getAttachment | ( | const std::string & | key | ) | const |
std::string vistle::Object::getAttribute | ( | const std::string & | key | ) | const |
std::vector< std::string > vistle::Object::getAttributeList | ( | ) | const |
std::vector< std::string > vistle::Object::getAttributes | ( | const std::string & | key | ) | const |
int vistle::Object::getBlock | ( | ) | const |
int vistle::Object::getCreator | ( | ) | const |
int vistle::Object::getExecutionCounter | ( | ) | const |
shm_handle_t vistle::Object::getHandle | ( | ) | const |
|
inline |
int vistle::Object::getIteration | ( | ) | const |
std::string vistle::Object::getName | ( | ) | const |
int vistle::Object::getNumBlocks | ( | ) | const |
int vistle::Object::getNumTimesteps | ( | ) | const |
double vistle::Object::getRealTime | ( | ) | const |
int vistle::Object::getTimestep | ( | ) | const |
Matrix4 vistle::Object::getTransform | ( | ) | const |
Object::Type vistle::Object::getType | ( | ) | const |
bool vistle::Object::hasAttachment | ( | const std::string & | key | ) | const |
bool vistle::Object::hasAttribute | ( | const std::string & | key | ) | const |
bool vistle::Object::isComplete | ( | ) | const |
|
virtual |
|
virtual |
|
static |
const Meta & vistle::Object::meta | ( | ) | const |
|
inlineoverridevirtual |
Implements vistle::ObjectInterfaceBase.
bool vistle::Object::operator!= | ( | const Object & | other | ) | const |
bool vistle::Object::operator== | ( | const Object & | other | ) | const |
|
staticprotected |
int vistle::Object::ref | ( | ) | const |
int vistle::Object::refcount | ( | ) | const |
|
virtual |
check whether all references have been resolved
Reimplemented in vistle::Coords, vistle::DataBase, vistle::RectilinearGrid, and vistle::UniformGrid.
|
virtual |
refresh cached pointers from shm
bool vistle::Object::removeAttachment | ( | const std::string & | key | ) | const |
void vistle::Object::saveObject | ( | Archive & | ar | ) | const |
void vistle::Object::setAttributeList | ( | const std::string & | key, |
const std::vector< std::string > & | values | ||
) |
void vistle::Object::setBlock | ( | const int | block | ) |
void vistle::Object::setCreator | ( | const int | id | ) |
void vistle::Object::setExecutionCounter | ( | const int | count | ) |
void vistle::Object::setIteration | ( | const int | num | ) |
void vistle::Object::setMeta | ( | const Meta & | meta | ) |
void vistle::Object::setNumBlocks | ( | const int | num | ) |
void vistle::Object::setNumTimesteps | ( | const int | num | ) |
void vistle::Object::setRealTime | ( | double | time | ) |
void vistle::Object::setTimestep | ( | const int | timestep | ) |
void vistle::Object::setTransform | ( | const Matrix4 & | transform | ) |
|
static |
|
inlinestatic |
int vistle::Object::unref | ( | ) | const |
|
virtual |
Reimplemented in vistle::Vec< T, Dim >, vistle::Vec< Scalar, 3 >, and vistle::Vec< Scalar >.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |