Skip to content

Class endstone::CompoundTag

ClassList > endstone > CompoundTag

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

Public Types

Type Name
typedef map_type::const_iterator const_iterator
typedef map_type::iterator iterator
typedef std::string key_type
typedef std::map< key_type, value_type > map_type
typedef std::size_t size_type
typedef nbt::Tag value_type

Public Functions

Type Name
CompoundTag () = default
CompoundTag (std::initializer_list< std::pair< key_type, value_type > > init)
value_type & at (const key_type & key)
const value_type & at (key_type key) const
iterator begin () noexcept
const_iterator begin () noexcept const
const_iterator cbegin () noexcept const
const_iterator cend () noexcept const
void clear () noexcept
bool contains (const key_type & key) noexcept const
std::pair< iterator, bool > emplace (Args &&... args)
bool empty () noexcept const
iterator end () noexcept
const_iterator end () noexcept const
iterator erase (const_iterator pos)
size_type erase (const key_type & key)
iterator erase (const_iterator first, const_iterator last)
std::pair< iterator, bool > insert (P && v)
std::pair< iterator, bool > insert_or_assign (const key_type & key, M && obj)
void merge (CompoundTag & source)
void merge (CompoundTag && source)
value_type & operator[] (const key_type & key)
size_type size () noexcept const
void swap (CompoundTag & other) noexcept
std::pair< iterator, bool > try_emplace (const key_type & key, Args &&... args)

Public Types Documentation

typedef const_iterator

using endstone::CompoundTag::const_iterator =  map_type::const_iterator;

typedef iterator

using endstone::CompoundTag::iterator =  map_type::iterator;

typedef key_type

using endstone::CompoundTag::key_type =  std::string;

typedef map_type

using endstone::CompoundTag::map_type =  std::map<key_type, value_type>;

typedef size_type

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

typedef value_type

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

Public Functions Documentation

function CompoundTag [½]

endstone::CompoundTag::CompoundTag () = default

function CompoundTag [2/2]

endstone::CompoundTag::CompoundTag (
    std::initializer_list< std::pair< key_type, value_type > > init
) 

function at [½]

inline value_type & endstone::CompoundTag::at (
    const key_type & key
) 

function at [2/2]

inline const  value_type & endstone::CompoundTag::at (
    key_type key
) const

function begin [½]

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

function begin [2/2]

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

function cbegin

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

function cend

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

function clear

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

function contains

inline bool endstone::CompoundTag::contains (
    const key_type & key
) noexcept const

function emplace

template<class... Args>
std::pair< iterator, bool > endstone::CompoundTag::emplace (
    Args &&... args
) 

function empty

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

function end [½]

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

function end [2/2]

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

function erase [⅓]

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

function erase [⅔]

inline size_type endstone::CompoundTag::erase (
    const key_type & key
) 

function erase [3/3]

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

function insert

template<class  P>
std::pair< iterator, bool > endstone::CompoundTag::insert (
    P && v
) 

function insert_or_assign

template<class  M>
std::pair< iterator, bool > endstone::CompoundTag::insert_or_assign (
    const key_type & key,
    M && obj
) 

function merge [½]

inline void endstone::CompoundTag::merge (
    CompoundTag & source
) 

function merge [2/2]

inline void endstone::CompoundTag::merge (
    CompoundTag && source
) 

function operator[]

inline value_type & endstone::CompoundTag::operator[] (
    const key_type & key
) 

function size

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

function swap

inline void endstone::CompoundTag::swap (
    CompoundTag & other
) noexcept

function try_emplace

template<class... Args>
std::pair< iterator, bool > endstone::CompoundTag::try_emplace (
    const key_type & key,
    Args &&... args
) 

Friends Documentation

friend operator!=

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

friend operator==

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


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