The Battle for Wesnoth  1.13.11+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
t_translation::ter_map Struct Reference

#include <translation.hpp>

Public Member Functions

 ter_map ()=default
 
 ter_map (const ter_map &)=default
 
 ter_map (ter_map &&)=default
 
 ter_map (int w, int h, terrain_code fill=terrain_code())
 
ter_mapoperator= (const ter_map &)=default
 
ter_mapoperator= (ter_map &&)=default
 
terrain_codeget (int x, int y)
 
const terrain_codeget (int x, int y) const
 
std::vector< terrain_code >
::iterator 
operator[] (int x)
 
std::vector< terrain_code >
::const_iterator 
operator[] (int x) const
 

Public Attributes

std::vector< terrain_codedata
 
int w
 
int h
 

Detailed Description

Definition at line 78 of file translation.hpp.

Constructor & Destructor Documentation

t_translation::ter_map::ter_map ( )
default
t_translation::ter_map::ter_map ( const ter_map )
default
t_translation::ter_map::ter_map ( ter_map &&  )
default
t_translation::ter_map::ter_map ( int  w,
int  h,
terrain_code  fill = terrain_code() 
)
inline

Definition at line 85 of file translation.hpp.

Member Function Documentation

terrain_code& t_translation::ter_map::get ( int  x,
int  y 
)
inline
const terrain_code& t_translation::ter_map::get ( int  x,
int  y 
) const
inline

Definition at line 93 of file translation.hpp.

References data.

ter_map& t_translation::ter_map::operator= ( const ter_map )
default
ter_map& t_translation::ter_map::operator= ( ter_map &&  )
default
std::vector<terrain_code>::iterator t_translation::ter_map::operator[] ( int  x)
inline

Definition at line 98 of file translation.hpp.

std::vector<terrain_code>::const_iterator t_translation::ter_map::operator[] ( int  x) const
inline

Definition at line 99 of file translation.hpp.

Member Data Documentation

std::vector<terrain_code> t_translation::ter_map::data
int t_translation::ter_map::h
int t_translation::ter_map::w

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