Exemplo n.º 1
0
Color::Proxy Color::operator[](const style::palette &paletteOverride) const {
	auto index = main_palette::indexOfColor(*this);
	return Proxy((index >= 0) ? paletteOverride.colorAtIndex(index) : (*this));
}
Exemplo n.º 2
0
RInside::Proxy RInside::parseEvalNT(const std::string & line) {
    SEXP ans;
    parseEval(line, ans);
    return Proxy( ans );
}
Exemplo n.º 3
0
			Proxy operator [] (uint i)
			{
				return Proxy( container, i );
			}
Exemplo n.º 4
0
 List::Proxy List::operator[] ( size_type i )
 {
     return (Proxy(*this, i));
 }
Exemplo n.º 5
0
 Proxy operator[](const std::size_t index)
 {
     return Proxy(array_of_arrays[index]);
 }
Exemplo n.º 6
0
	void DiscardProxy() { Proxy(Ip::Endpoint()); }
Exemplo n.º 7
0
Arquivo: main.cpp Projeto: CCJY/coliru
int main() {
    bool& ref = Proxy();
}
Exemplo n.º 8
0
Object::Proxy Object::operator[] (Json::StaticString const& key)
{
    return Proxy (*this, std::string (key));
}
Exemplo n.º 9
0
void PhysicsWorld::QueryRegion(const Math::Vector3 &minPoint, const Math::Vector3 &maxPoint, RegionQueryResult &result)
{
	return mBroadphase->QueryRegion(Proxy(minPoint, maxPoint), result);
}
Exemplo n.º 10
0
Grid::Proxy Grid::operator[](int index)
{
    assert (index >= 0 && index < gridSize);
    return Proxy(dynamicGrid[index]);
}
Exemplo n.º 11
0
Object::Proxy Object::operator[] (std::string const& key)
{
    return Proxy (*this, key);
}
Exemplo n.º 12
0
UserManagementServer::UserManagementServer(void)
{
	Proxy("UserAce");
}
Exemplo n.º 13
0
PropertyStream::Proxy PropertyStream::Map::operator[] (std::string const& key)
{
    return Proxy (*this, key);
}
Exemplo n.º 14
0
map::Proxy map::operator[](int key)
{
	return Proxy(*this, key);
}
Exemplo n.º 15
0
const map::Proxy map::operator[](int key) const
{
	return Proxy(const_cast<map &>(*this), key);
}
Exemplo n.º 16
0
#define X(op, bits) bits,
static unsigned char bits[] = { ENUMBINDING };
#undef X

/*
 * Example 4
 *
 * in case the name X has already been taken somewhere
 */
#define Proxy(apply) \
	apply(foo) \
	apply(bar)

#define apply(a) K##a,
enum { Proxy(apply) };
#undef apply

#define apply(a) #a,
static char *str_vals[] = { Proxy(apply) };
#undef apply 

int main()
{
	printf("Value of key 2 is: %s\n", vals[KEY2]);

	printf("String name of dog is: \"%s\"\n", animal_names[KDog]);
	
	return 0;
}