Skip to content

Class endstone::ListTag

ClassList > endstone > ListTag

Inherits the following classes: endstone::nbt::TagBase

Public Types

Type Name
typedef container_type::const_iterator const_iterator
typedef std::vector< value_type > container_type
typedef container_type::iterator iterator
typedef std::size_t size_type
typedef nbt::Tag value_type

Public Functions

Type Name
ListTag () = default
ListTag (std::initializer_list< T > init)
value_type & at (size_type i)
const value_type & at (size_type i) const
iterator begin () noexcept
const_iterator begin () noexcept const
const_iterator cbegin () noexcept const
const_iterator cend () noexcept const
void clear () noexcept
value_type & emplace_back (Args &&... args)
bool empty () noexcept const
iterator end () noexcept
const_iterator end () noexcept const
iterator erase (const_iterator pos)
iterator erase (const_iterator first, const_iterator last)
value_type & operator[] (size_type i)
const value_type & operator[] (size_type i) const
void push_back (const value_type & v)
void push_back (value_type && v)
size_type size () noexcept const
nbt::Type type () noexcept const

Public Types Documentation

typedef const_iterator

using endstone::ListTag::const_iterator =  container_type::const_iterator;

typedef container_type

using endstone::ListTag::container_type =  std::vector<value_type>;

typedef iterator

using endstone::ListTag::iterator =  container_type::iterator;

typedef size_type

using endstone::ListTag::size_type =  std::size_t;

typedef value_type

using endstone::ListTag::value_type =  nbt::Tag;

Public Functions Documentation

function ListTag [½]

endstone::ListTag::ListTag () = default

function ListTag [2/2]

template<typename  T>
endstone::ListTag::ListTag (
    std::initializer_list< T > init
) 

function at [½]

inline value_type & endstone::ListTag::at (
    size_type i
) 

function at [2/2]

inline const  value_type & endstone::ListTag::at (
    size_type i
) const

function begin [½]

inline iterator endstone::ListTag::begin () noexcept

function begin [2/2]

inline const_iterator endstone::ListTag::begin () noexcept const

function cbegin

inline const_iterator endstone::ListTag::cbegin () noexcept const

function cend

inline const_iterator endstone::ListTag::cend () noexcept const

function clear

inline void endstone::ListTag::clear () noexcept

function emplace_back

template<class... Args>
value_type & endstone::ListTag::emplace_back (
    Args &&... args
) 

function empty

inline bool endstone::ListTag::empty () noexcept const

function end [½]

inline iterator endstone::ListTag::end () noexcept

function end [2/2]

inline const_iterator endstone::ListTag::end () noexcept const

function erase [½]

inline iterator endstone::ListTag::erase (
    const_iterator pos
) 

function erase [2/2]

inline iterator endstone::ListTag::erase (
    const_iterator first,
    const_iterator last
) 

function operator[]

inline value_type & endstone::ListTag::operator[] (
    size_type i
) 

function operator[]

inline const  value_type & endstone::ListTag::operator[] (
    size_type i
) const

function push_back [½]

void endstone::ListTag::push_back (
    const  value_type & v
) 

function push_back [2/2]

void endstone::ListTag::push_back (
    value_type && v
) 

function size

inline size_type endstone::ListTag::size () noexcept const

function type

inline nbt::Type endstone::ListTag::type () noexcept const

Friends Documentation

friend operator!=

bool endstone::ListTag::operator!= (
    const  ListTag & a,
    const  ListTag & b
) noexcept

friend operator==

bool endstone::ListTag::operator== (
    const  ListTag & a,
    const  ListTag & b
) noexcept


The documentation for this class was generated from the following file include/endstone/nbt/list.h