Choreonoid  1.8
Public Types | Public Member Functions | Protected Member Functions | List of all members
cnoid::SgVectorArray< T, Alloc > Class Template Reference

#include <SceneDrawables.h>

Inheritance diagram for cnoid::SgVectorArray< T, Alloc >:
cnoid::SgObject cnoid::ClonableReferenced cnoid::Referenced

Public Types

typedef Container::iterator iterator
 
typedef Container::const_iterator const_iterator
 
typedef Container::size_type size_type
 
typedef Container::value_type value_type
 
typedef Container::reference reference
 
typedef Container::const_reference const_reference
 
typedef Container::pointer pointer
 
typedef Container::const_pointer const_pointer
 
typedef T::Scalar Scalar
 
- Public Types inherited from cnoid::SgObject
enum  Attribute {
  Node = 1 << 0, GroupNode = 1 << 1, TransformNode = 1 << 2, Composite = 1 << 3,
  Geometry = 1 << 4, Appearance = 1 << 5, NodeDecoration = 1 << 6, Marker = 1 << 7,
  Operable = 1 << 8, MaxAttributeBit = 9, GroupAttribute = GroupNode, NodeDecorationGroup = NodeDecoration,
  MarkerAttribute = Marker
}
 
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 

Public Member Functions

 SgVectorArray ()
 
 SgVectorArray (size_t size)
 
 SgVectorArray (const std::vector< T > &org)
 
 SgVectorArray (std::initializer_list< T > init)
 
template<class Element >
 SgVectorArray (const std::vector< Element > &org)
 
 SgVectorArray (const SgVectorArray &org)
 
SgVectorArray< T > & operator= (const SgVectorArray< T > &rhs)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
size_type size () const
 
void resize (size_type s)
 
void resize (size_type s, const T &v)
 
bool empty () const
 
void reserve (size_type s)
 
size_type capacity () const
 
T & operator[] (size_type i)
 
const T & operator[] (size_type i) const
 
T & at (size_type i)
 
const T & at (size_type i) const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
Scalardata ()
 
const Scalardata () const
 
iterator insert (const_iterator pos, std::initializer_list< T > il)
 
void push_back (const T &v)
 
template<class... Args>
void emplace_back (Args &&... args)
 
void pop_back ()
 
iterator erase (iterator p)
 
iterator erase (iterator first, iterator last)
 
void clear ()
 
void shrink_to_fit ()
 
- Public Member Functions inherited from cnoid::SgObject
SgObjectclone () const
 
SgObjectclone (CloneMap &cloneMap) const
 
void setAttribute (int attr)
 
void setAttributes (int attrs)
 
int attributes () const
 
bool hasAttribute (int attr) const
 
bool hasAttributes (int attrs) const
 
const std::string & name () const
 
void setName (const std::string &name)
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
SignalProxy< void(const SgUpdate &update)> sigUpdated ()
 
void notifyUpdate (SgUpdate &update)
 
void notifyUpdate (int action=SgUpdate::Modified)
 
void addParent (SgObject *parent, SgUpdateRef update=nullptr)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
bool hasValidBoundingBoxCache () const
 
void invalidateBoundingBox ()
 
void setBoundingBoxCacheReady () const
 
bool hasUri () const
 
const std::string & uri () const
 
bool hasAbsoluteUri () const
 
const std::string & absoluteUri () const
 
bool hasUriFragment () const
 
const std::string & uriFragment () const
 
void setUriByFilePathAndBaseDirectory (const std::string &filePath, const std::string &baseDirectory)
 
void setUriByFilePathAndCurrentDirectory (const std::string &filePath)
 
void setUri (const std::string &uri, const std::string &absoluteUri)
 
void setUriFragment (const std::string &fragment)
 
void clearUri ()
 
bool isNode () const
 
SgNodetoNode ()
 
bool isGroupNode () const
 
SgGrouptoGroupNode ()
 
bool isTransformNode () const
 
SgTransformtoTransformNode ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

virtual ReferenceddoClone (CloneMap *) const override
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
void notifyUpperNodesOfUpdate (SgUpdate &update)
 
void notifyUpperNodesOfUpdate (SgUpdate &update, bool doInvalidateBoundingBox)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Additional Inherited Members

- Static Public Member Functions inherited from cnoid::SgObject
static bool checkNonNodeCloning (const CloneMap &cloneMap)
 
static void setNonNodeCloning (CloneMap &cloneMap, bool on)
 

Member Typedef Documentation

◆ const_iterator

template<class T , class Alloc = std::allocator<T>>
typedef Container::const_iterator cnoid::SgVectorArray< T, Alloc >::const_iterator

◆ const_pointer

template<class T , class Alloc = std::allocator<T>>
typedef Container::const_pointer cnoid::SgVectorArray< T, Alloc >::const_pointer

◆ const_reference

template<class T , class Alloc = std::allocator<T>>
typedef Container::const_reference cnoid::SgVectorArray< T, Alloc >::const_reference

◆ iterator

template<class T , class Alloc = std::allocator<T>>
typedef Container::iterator cnoid::SgVectorArray< T, Alloc >::iterator

◆ pointer

template<class T , class Alloc = std::allocator<T>>
typedef Container::pointer cnoid::SgVectorArray< T, Alloc >::pointer

◆ reference

template<class T , class Alloc = std::allocator<T>>
typedef Container::reference cnoid::SgVectorArray< T, Alloc >::reference

◆ Scalar

template<class T , class Alloc = std::allocator<T>>
typedef T::Scalar cnoid::SgVectorArray< T, Alloc >::Scalar

◆ size_type

template<class T , class Alloc = std::allocator<T>>
typedef Container::size_type cnoid::SgVectorArray< T, Alloc >::size_type

◆ value_type

template<class T , class Alloc = std::allocator<T>>
typedef Container::value_type cnoid::SgVectorArray< T, Alloc >::value_type

Constructor & Destructor Documentation

◆ SgVectorArray() [1/6]

template<class T , class Alloc = std::allocator<T>>
cnoid::SgVectorArray< T, Alloc >::SgVectorArray ( )
inline

◆ SgVectorArray() [2/6]

template<class T , class Alloc = std::allocator<T>>
cnoid::SgVectorArray< T, Alloc >::SgVectorArray ( size_t  size)
inline

◆ SgVectorArray() [3/6]

template<class T , class Alloc = std::allocator<T>>
cnoid::SgVectorArray< T, Alloc >::SgVectorArray ( const std::vector< T > &  org)
inline

◆ SgVectorArray() [4/6]

template<class T , class Alloc = std::allocator<T>>
cnoid::SgVectorArray< T, Alloc >::SgVectorArray ( std::initializer_list< T >  init)
inline

◆ SgVectorArray() [5/6]

template<class T , class Alloc = std::allocator<T>>
template<class Element >
cnoid::SgVectorArray< T, Alloc >::SgVectorArray ( const std::vector< Element > &  org)
inline

◆ SgVectorArray() [6/6]

template<class T , class Alloc = std::allocator<T>>
cnoid::SgVectorArray< T, Alloc >::SgVectorArray ( const SgVectorArray< T, Alloc > &  org)
inline

Member Function Documentation

◆ at() [1/2]

template<class T , class Alloc = std::allocator<T>>
T& cnoid::SgVectorArray< T, Alloc >::at ( size_type  i)
inline

◆ at() [2/2]

template<class T , class Alloc = std::allocator<T>>
const T& cnoid::SgVectorArray< T, Alloc >::at ( size_type  i) const
inline

◆ back() [1/2]

template<class T , class Alloc = std::allocator<T>>
T& cnoid::SgVectorArray< T, Alloc >::back ( )
inline

◆ back() [2/2]

template<class T , class Alloc = std::allocator<T>>
const T& cnoid::SgVectorArray< T, Alloc >::back ( ) const
inline

◆ begin() [1/2]

template<class T , class Alloc = std::allocator<T>>
iterator cnoid::SgVectorArray< T, Alloc >::begin ( )
inline

◆ begin() [2/2]

template<class T , class Alloc = std::allocator<T>>
const_iterator cnoid::SgVectorArray< T, Alloc >::begin ( ) const
inline

◆ capacity()

template<class T , class Alloc = std::allocator<T>>
size_type cnoid::SgVectorArray< T, Alloc >::capacity ( ) const
inline

◆ clear()

template<class T , class Alloc = std::allocator<T>>
void cnoid::SgVectorArray< T, Alloc >::clear ( )
inline

◆ data() [1/2]

template<class T , class Alloc = std::allocator<T>>
Scalar* cnoid::SgVectorArray< T, Alloc >::data ( )
inline

◆ data() [2/2]

template<class T , class Alloc = std::allocator<T>>
const Scalar* cnoid::SgVectorArray< T, Alloc >::data ( ) const
inline

◆ doClone()

template<class T , class Alloc = std::allocator<T>>
virtual Referenced* cnoid::SgVectorArray< T, Alloc >::doClone ( CloneMap ) const
inlineoverrideprotectedvirtual

Reimplemented from cnoid::SgObject.

◆ emplace_back()

template<class T , class Alloc = std::allocator<T>>
template<class... Args>
void cnoid::SgVectorArray< T, Alloc >::emplace_back ( Args &&...  args)
inline

◆ empty()

template<class T , class Alloc = std::allocator<T>>
bool cnoid::SgVectorArray< T, Alloc >::empty ( ) const
inline

◆ end() [1/2]

template<class T , class Alloc = std::allocator<T>>
iterator cnoid::SgVectorArray< T, Alloc >::end ( )
inline

◆ end() [2/2]

template<class T , class Alloc = std::allocator<T>>
const_iterator cnoid::SgVectorArray< T, Alloc >::end ( ) const
inline

◆ erase() [1/2]

template<class T , class Alloc = std::allocator<T>>
iterator cnoid::SgVectorArray< T, Alloc >::erase ( iterator  first,
iterator  last 
)
inline

◆ erase() [2/2]

template<class T , class Alloc = std::allocator<T>>
iterator cnoid::SgVectorArray< T, Alloc >::erase ( iterator  p)
inline

◆ front() [1/2]

template<class T , class Alloc = std::allocator<T>>
T& cnoid::SgVectorArray< T, Alloc >::front ( )
inline

◆ front() [2/2]

template<class T , class Alloc = std::allocator<T>>
const T& cnoid::SgVectorArray< T, Alloc >::front ( ) const
inline

◆ insert()

template<class T , class Alloc = std::allocator<T>>
iterator cnoid::SgVectorArray< T, Alloc >::insert ( const_iterator  pos,
std::initializer_list< T >  il 
)
inline

◆ operator=()

template<class T , class Alloc = std::allocator<T>>
SgVectorArray<T>& cnoid::SgVectorArray< T, Alloc >::operator= ( const SgVectorArray< T > &  rhs)
inline

◆ operator[]() [1/2]

template<class T , class Alloc = std::allocator<T>>
T& cnoid::SgVectorArray< T, Alloc >::operator[] ( size_type  i)
inline

◆ operator[]() [2/2]

template<class T , class Alloc = std::allocator<T>>
const T& cnoid::SgVectorArray< T, Alloc >::operator[] ( size_type  i) const
inline

◆ pop_back()

template<class T , class Alloc = std::allocator<T>>
void cnoid::SgVectorArray< T, Alloc >::pop_back ( )
inline

◆ push_back()

template<class T , class Alloc = std::allocator<T>>
void cnoid::SgVectorArray< T, Alloc >::push_back ( const T &  v)
inline

◆ reserve()

template<class T , class Alloc = std::allocator<T>>
void cnoid::SgVectorArray< T, Alloc >::reserve ( size_type  s)
inline

◆ resize() [1/2]

template<class T , class Alloc = std::allocator<T>>
void cnoid::SgVectorArray< T, Alloc >::resize ( size_type  s)
inline

◆ resize() [2/2]

template<class T , class Alloc = std::allocator<T>>
void cnoid::SgVectorArray< T, Alloc >::resize ( size_type  s,
const T &  v 
)
inline

◆ shrink_to_fit()

template<class T , class Alloc = std::allocator<T>>
void cnoid::SgVectorArray< T, Alloc >::shrink_to_fit ( )
inline

◆ size()

template<class T , class Alloc = std::allocator<T>>
size_type cnoid::SgVectorArray< T, Alloc >::size ( ) const
inline

The documentation for this class was generated from the following file: