Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Types | Public Member Functions | List of all members
cIntGen< SizeX, SizeZ > Class Template Referenceabstract

Interface that all the generator classes provide. More...

#include <IntGen.h>

Inheritance diagram for cIntGen< SizeX, SizeZ >:
Inheritance graph
[legend]

Public Types

using IntGenType = cIntGen< SizeX, SizeZ >
 
using Values = int[SizeX *SizeZ]
 Holds the array of values generated by this class (descendant). More...
 

Public Member Functions

virtual void GetInts (int a_MinX, int a_MinZ, Values &a_Values)=0
 Generates the array of templated size into a_Values, based on given min coords. More...
 
virtual ~cIntGen ()
 Force a virtual destructor in all descendants. More...
 

Detailed Description

template<int SizeX, int SizeZ = SizeX>
class cIntGen< SizeX, SizeZ >

Interface that all the generator classes provide.

Definition at line 54 of file IntGen.h.

Member Typedef Documentation

◆ IntGenType

template<int SizeX, int SizeZ = SizeX>
using cIntGen< SizeX, SizeZ >::IntGenType = cIntGen<SizeX, SizeZ>

Definition at line 58 of file IntGen.h.

◆ Values

template<int SizeX, int SizeZ = SizeX>
using cIntGen< SizeX, SizeZ >::Values = int[SizeX * SizeZ]

Holds the array of values generated by this class (descendant).

Definition at line 65 of file IntGen.h.

Constructor & Destructor Documentation

◆ ~cIntGen()

template<int SizeX, int SizeZ = SizeX>
virtual cIntGen< SizeX, SizeZ >::~cIntGen ( )
inlinevirtual

Force a virtual destructor in all descendants.

Descendants contain virtual functions and are referred to via pointer-to-base, so they need a virtual destructor.

Definition at line 62 of file IntGen.h.

Member Function Documentation

◆ GetInts()

template<int SizeX, int SizeZ = SizeX>
virtual void cIntGen< SizeX, SizeZ >::GetInts ( int  a_MinX,
int  a_MinZ,
Values a_Values 
)
pure virtual

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