Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

physics::Polyhedron::Vertex Class Reference

Inheritance diagram for physics::Polyhedron::Vertex:

Inheritance graph
[legend]
Collaboration diagram for physics::Polyhedron::Vertex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Vertex ()
 Vertex (const Vertex &v)
virtual ~Vertex ()
virtual String className () const
virtual Object & clone () const
Vertexoperator= (const Vertex &v)
const Point3coordinate () const
bool operator== (const Vertex &v) const
bool operator!= (const Vertex &v) const
EdgeList::const_iterator_const  edges_begin () const
EdgeList::const_iterator_const  edges_end () const
EdgeList::const_iterator edges_begin ()
EdgeList::const_iterator edges_end ()
virtual void serialize (base::Serializer &s)
 read or write object state to Serializer

virtual bool isSameKindAs (const ReferencedObject &) const
virtual bool isSameKindAs (const Object &) const
void reference () const
bool unreference () const
const int referenceCount () const
void enableOnUnreferenceCall (bool enabled)
virtual void onUnreference () const

Static Public Member Functions

template<class BaseClass, class DerivedClass> void registerSerializableInstantiator (const SerializableInstantiator &instantiator)
void registerSerializableInstantiator (const String &baseClassTypeName, const String &derivedClassTypeName, const SerializableInstantiator &instantiator)
template<class BaseClass> const SerializableInstantiator & getSerializableInstantiator (const String &derivedClassTypeName)
const SerializableInstantiator & getSerializableInstantiator (const String &baseClassTypeName, const String &derivedClassTypeName)
void * operator new (std::size_t size)
void operator delete (void *p, std::size_t size)

Protected Member Functions

 Vertex (const Point3 &p)

Protected Attributes

Point3 coord
EdgeList edges
int _refCount
bool onUnreferenceEnabled

Friends

class Polyhedron

Constructor & Destructor Documentation

physics::Polyhedron::Vertex::Vertex  )  [inline]
 

Definition at line 72 of file Polyhedron.

Referenced by clone().

physics::Polyhedron::Vertex::Vertex const Vertex v  )  [inline]
 

Definition at line 73 of file Polyhedron.

References coord, and edges.

virtual physics::Polyhedron::Vertex::~Vertex  )  [inline, virtual]
 

Definition at line 75 of file Polyhedron.

physics::Polyhedron::Vertex::Vertex const Point3 p  )  [inline, protected]
 

Definition at line 101 of file Polyhedron.

References coord, and base::Point3.


Member Function Documentation

virtual String physics::Polyhedron::Vertex::className  )  const [inline, virtual]
 

return the name of the object's class type. Must be defined by derived classes.

Implements base::Object.

Definition at line 77 of file Polyhedron.

virtual Object& physics::Polyhedron::Vertex::clone  )  const [inline, virtual]
 

Definition at line 78 of file Polyhedron.

References NewObj, and Vertex().

const Point3& physics::Polyhedron::Vertex::coordinate  )  const [inline]
 

Definition at line 83 of file Polyhedron.

References coord, and base::Point3.

EdgeList::const_iterator physics::Polyhedron::Vertex::edges_begin  )  [inline]
 

Definition at line 92 of file Polyhedron.

References base::reflist< _Tp, _Alloc >::begin(), and edges.

EdgeList::const_iterator_const physics::Polyhedron::Vertex::edges_begin  )  const [inline]
 

Definition at line 89 of file Polyhedron.

References base::reflist< _Tp, _Alloc >::const_begin(), and edges.

EdgeList::const_iterator physics::Polyhedron::Vertex::edges_end  )  [inline]
 

Definition at line 93 of file Polyhedron.

References edges, and base::reflist< _Tp, _Alloc >::end().

EdgeList::const_iterator_const physics::Polyhedron::Vertex::edges_end  )  const [inline]
 

Definition at line 90 of file Polyhedron.

References base::reflist< _Tp, _Alloc >::const_end(), and edges.

void base::Referenced::enableOnUnreferenceCall bool  enabled  )  [inline, inherited]
 

If enabled, each call to unreference() will also call virtual method onUnreference()

Definition at line 115 of file Referenced.

References base::Referenced::onUnreferenceEnabled.

const SerializableInstantiator& base::Serializable::getSerializableInstantiator const String baseClassTypeName,
const String derivedClassTypeName
[static, inherited]
 

template<class BaseClass>
const SerializableInstantiator& base::Serializable::getSerializableInstantiator const String derivedClassTypeName  )  [inline, static, inherited]
 

Definition at line 71 of file Serializable.

References base::String.

virtual bool base::Object::isSameKindAs const Object  )  const [inline, virtual, inherited]
 

Definition at line 47 of file Object.

virtual bool base::ReferencedObject::isSameKindAs const ReferencedObject  )  const [inline, virtual, inherited]
 

Definition at line 52 of file ReferencedObject.

virtual void base::Referenced::onUnreference  )  const [inline, virtual, inherited]
 

Called by unreference() if enabled via enableOnUnreferenceCall(true). Typically overridden in subclasses that wish to know about unreference() calls - for example to handle manually breaking cyclic references

Reimplemented in robot::control::ControllableAdaptor::AdaptorControlInterface, and robot::control::ControllableAdaptor.

Definition at line 121 of file Referenced.

Referenced by base::Referenced::unreference().

void base::SmallObject< ThreadingModel, chunkSize, maxSmallObjectSize >::operator delete void *  p,
std::size_t  size
[inline, static, inherited]
 

Definition at line 200 of file SmallObj.

void* base::SmallObject< ThreadingModel, chunkSize, maxSmallObjectSize >::operator new std::size_t  size  )  [inline, static, inherited]
 

Definition at line 188 of file SmallObj.

References operator new().

bool physics::Polyhedron::Vertex::operator!= const Vertex v  )  const [inline]
 

Definition at line 87 of file Polyhedron.

Vertex& physics::Polyhedron::Vertex::operator= const Vertex v  )  [inline]
 

Definition at line 80 of file Polyhedron.

References coord, and edges.

bool physics::Polyhedron::Vertex::operator== const Vertex v  )  const [inline]
 

Definition at line 86 of file Polyhedron.

void base::Referenced::reference  )  const [inline, inherited]
 

Increment the reference count by one, indicating that this object has another pointer which is referencing it.

Definition at line 65 of file Referenced.

References base::Referenced::_refCount.

const int base::Referenced::referenceCount  )  const [inline, inherited]
 

Return the number pointers currently referencing this object.

Definition at line 112 of file Referenced.

References base::Referenced::_refCount.

Referenced by robot::control::ControllableAdaptor::AdaptorControlInterface::onUnreference().

void base::Serializable::registerSerializableInstantiator const String baseClassTypeName,
const String derivedClassTypeName,
const SerializableInstantiator instantiator
[static, inherited]
 

template<class BaseClass, class DerivedClass>
void base::Serializable::registerSerializableInstantiator const SerializableInstantiator instantiator  )  [inline, static, inherited]
 

Definition at line 62 of file Serializable.

virtual void physics::Polyhedron::Vertex::serialize base::Serializer s  )  [inline, virtual]
 

read or write object state to Serializer

Implements base::Serializable.

Definition at line 95 of file Polyhedron.

References coord, edges, base::Vector3::x, base::Vector3::y, and base::Vector3::z.

bool base::Referenced::unreference  )  const [inline, inherited]
 

Decrement the reference count by one, indicating that a pointer to this object is referencing it. If the refence count goes to zero, it is assumed that this object is nolonger referenced and is automatically deleted.

Definition at line 81 of file Referenced.

References base::Referenced::_refCount, Exception, base::Referenced::onUnreference(), and base::Referenced::onUnreferenceEnabled.


Friends And Related Function Documentation

friend class Polyhedron [friend]
 

Definition at line 106 of file Polyhedron.


Member Data Documentation

int base::Referenced::_refCount [mutable, protected, inherited]
 

Definition at line 136 of file Referenced.

Referenced by base::Referenced::reference(), base::Referenced::referenceCount(), base::Referenced::Referenced(), base::Referenced::unreference(), and base::Referenced::~Referenced().

Point3 physics::Polyhedron::Vertex::coord [protected]
 

Definition at line 103 of file Polyhedron.

Referenced by coordinate(), operator=(), serialize(), and Vertex().

EdgeList physics::Polyhedron::Vertex::edges [protected]
 

Definition at line 104 of file Polyhedron.

Referenced by edges_begin(), edges_end(), operator=(), serialize(), and Vertex().

bool base::Referenced::onUnreferenceEnabled [protected, inherited]
 

Definition at line 137 of file Referenced.

Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference().


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:41:23 2004 for OpenSim by doxygen 1.3.6