AGX Dynamics  2.37.3.2
agxIO::FileStateVector Class Reference

vector for holding a set of file states, where the vector can be asked if any of the files has been changed. More...

#include <FileState.h>

+ Inheritance diagram for agxIO::FileStateVector:

Public Member Functions

bool hasChanged () const
 
void push_back (const FileState &fs)
 Add a FileState to the vector. More...
 
void push_back (const agx::String &filename)
 Add a filename to the vector. More...
 
- Public Member Functions inherited from agx::Vector< agxIO::FileState >
 Vector (const ByteAllocator &allocator=ByteAllocator())
 
 Vector (size_t size, const agxIO::FileState &value=agxIO::FileState(), const ByteAllocator &allocator=ByteAllocator())
 
 Vector (const_iterator first, const_iterator end, const ByteAllocator &allocator=ByteAllocator())
 
 Vector (std::initializer_list< agxIO::FileState > values, const ByteAllocator &allocator=ByteAllocator())
 
 Vector (const Vector< agxIO::FileState, ByteAllocator > &other)
 
 Vector (Vector< agxIO::FileState, ByteAllocator > &&other)
 
 ~Vector ()
 
ByteAllocator & allocator ()
 
const ByteAllocator & allocator () const
 
agxIO::FileState & at (size_t index) const
 
agxIO::FileState & back () const
 
iterator begin ()
 
const_iterator begin () const
 
void clear (ClearPolicy policy=SHRINK_BUFFER_AVERAGED)
 Remove all elements, optionally with maintained buffer allocation. More...
 
bool contains (const T2 &element) const
 Test if the vector contains a certain element. More...
 
bool contains (const agxIO::FileState &element) const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator position)
 STL erase functionality. More...
 
iterator erase (iterator start, iterator end)
 
void erase (size_t index)
 Erase elements using indices instead of iterators. More...
 
void erase (size_t start, size_t end)
 
iterator eraseFast (const_iterator position)
 Fast erase, replacing the erased element with the last element. More...
 
void eraseFast (size_t index)
 
size_t find (const T2 &element) const
 Find the index to a matching element, return size() if not found. More...
 
bool findAndErase (const T2 &element, bool searchMultiple=false)
 Find and erase an element. More...
 
agxIO::FileState & front () const
 
agxIO::FileState * increment (size_t numElements=1)
 Resize using a increment. More...
 
iterator insert (iterator position, const agxIO::FileState &value)
 
void insert (size_t index, const agxIO::FileState &value)
 
void insert (const_iterator it, InputIterator first, InputIterator last)
 
void insert (const_iterator it, std::initializer_list< agxIO::FileState > ilist)
 
bool operator!= (const Vector< agxIO::FileState, ByteAllocator > &other) const
 
Vector< agxIO::FileState, ByteAllocator > & operator= (const Vector< agxIO::FileState, ByteAllocator > &other)
 
bool operator== (const Vector< agxIO::FileState, ByteAllocator > &other) const
 Compare with other vector, return true if same size and all pairs are equal. More...
 
agxIO::FileState & operator[] (size_t i) const
 
void pop_back ()
 
agxIO::FileState * ptr ()
 Get access to the internal data buffer. More...
 
const agxIO::FileState * ptr () const
 
void push_back (const T2 &value)
 
void push_back (const agxIO::FileState &value)
 
void push_back (agxIO::FileState &&value)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
void reserve (size_t size)
 Reserve capacity in the vector. More...
 
void reserveAtLeast (size_t size)
 Reserve capacity in the vector. More...
 
void resize (size_t size)
 Resize the vector, which then enables direct addressing using the bracket '[]' operator. More...
 
void resize (size_t size, const agxIO::FileState &value)
 
void shrink_to_fit ()
 Reduce the capacity of the vector to the actual size (number of elements) More...
 
void swap (Vector &other)
 
- Public Member Functions inherited from agx::Container
size_t capacity () const
 Returns the size of the memory are used by the container to store its elements. More...
 
bool empty () const
 
void * ptr ()
 
const void * ptr () const
 
size_t size () const
 

Additional Inherited Members

- Public Types inherited from agx::Vector< agxIO::FileState >
typedef const agxIO::FileState * const_iterator
 
typedef const agxIO::FileState * const_pointer
 
typedef const agxIO::FileState & const_reference
 
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
 
typedef ptrdiff_t difference_type
 
typedef agxIO::FileState * iterator
 
typedef std::random_access_iterator_tag iterator_category
 
typedef agxIO::FileState * pointer
 
typedef agxIO::FileState & reference
 
typedef std::reverse_iterator< iterator > reverse_iterator
 
typedef size_t size_type
 
typedef agxIO::FileState Type
 
typedef agxIO::FileState value_type
 
- Public Types inherited from agx::Container
enum  ClearPolicy { SHRINK_BUFFER, SHRINK_BUFFER_AVERAGED, MAINTAIN_BUFFER }
 agxData::Values from this enumeration is passed to the subclasses' 'clear' method in order to control what should become of the container's memory. More...
 
- Protected Member Functions inherited from agx::Container
 Container ()
 
 Container (Container &&other)
 
 Container (const Container &other)
 
 ~Container ()
 
- Protected Attributes inherited from agx::Container
void * m_buffer
 
size_t m_capacity
 
size_t m_size
 

Detailed Description

vector for holding a set of file states, where the vector can be asked if any of the files has been changed.

Definition at line 69 of file FileState.h.

Member Function Documentation

◆ hasChanged()

bool agxIO::FileStateVector::hasChanged ( ) const
Returns
true if any of the FileStates have been changed

◆ push_back() [1/2]

void agxIO::FileStateVector::push_back ( const FileState &  fs)

Add a FileState to the vector.

◆ push_back() [2/2]

void agxIO::FileStateVector::push_back ( const agx::String &  filename)

Add a filename to the vector.


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