Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jm::Array< T > Class Template Reference

The array class serves as a template for handling arrays as easily as variables. At the same time, array size control takes place. More...

Inheritance diagram for jm::Array< T >:
jm::Object

Public Member Functions

 Array ()
 
 Array (size_t size)
 
 Array (const Array &other)
 
 ~Array () override
 
size_t size () const
 
void sort ()
 
T get (size_t index) const
 
void set (size_t index, T item)
 
T & operator[] (const size_t index) const
 
Array & operator= (const Array &another)
 
- Public Member Functions inherited from jm::Object
 Object () noexcept
 Constructor.
 
virtual ~Object () noexcept
 Destructor.
 
void release () noexcept
 Decreases the reference counter and releases the object immediately when the reference counter becomes 0.
 
Object * retain () noexcept
 Increases the reference counter of this object by 1.
 
Object * autorelease () noexcept
 Same function as release(), but releases the object with a delay if the reference counter is 0. AutoreleasePool::drain() must be called in the to release the object.
 
int32 referenceCount () const noexcept
 Returns the value of the reference counter.
 
virtual bool equals (const Object *other) const
 Comparison of objects.
 
virtual String displayName () const
 Returns the display name of the object intended to present to a user.
 
virtual void printDiffInfo (DiffOperation operation, Object *other) const
 Output method for outputting the diff results for the diff algorithm.
 
void setHighBit (bool status) noexcept
 
bool highBit () const noexcept
 

Detailed Description

template<class T>
class jm::Array< T >

The array class serves as a template for handling arrays as easily as variables. At the same time, array size control takes place.

Constructor & Destructor Documentation

◆ Array() [1/3]

template<class T >
jm::Array< T >::Array ( )
inline

◆ Array() [2/3]

template<class T >
jm::Array< T >::Array ( size_t  size)
inlineexplicit

◆ Array() [3/3]

template<class T >
jm::Array< T >::Array ( const Array< T > &  other)
inline

◆ ~Array()

template<class T >
jm::Array< T >::~Array ( )
inlineoverride

Member Function Documentation

◆ get()

template<class T >
T jm::Array< T >::get ( size_t  index) const
inline

◆ operator=()

template<class T >
Array & jm::Array< T >::operator= ( const Array< T > &  another)
inline

◆ operator[]()

template<class T >
T & jm::Array< T >::operator[] ( const size_t  index) const
inline

◆ set()

template<class T >
void jm::Array< T >::set ( size_t  index,
T  item 
)
inline

◆ size()

template<class T >
size_t jm::Array< T >::size ( ) const
inline

◆ sort()

template<class T >
void jm::Array< T >::sort ( )
inline