Beispiel #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));
}
Beispiel #2
0
RInside::Proxy RInside::parseEvalNT(const std::string & line) {
    SEXP ans;
    parseEval(line, ans);
    return Proxy( ans );
}
Beispiel #3
0
			Proxy operator [] (uint i)
			{
				return Proxy( container, i );
			}
Beispiel #4
0
 List::Proxy List::operator[] ( size_type i )
 {
     return (Proxy(*this, i));
 }
Beispiel #5
0
 Proxy operator[](const std::size_t index)
 {
     return Proxy(array_of_arrays[index]);
 }
Beispiel #6
0
	void DiscardProxy() { Proxy(Ip::Endpoint()); }
Beispiel #7
0
int main() {
    bool& ref = Proxy();
}
Beispiel #8
0
Object::Proxy Object::operator[] (Json::StaticString const& key)
{
    return Proxy (*this, std::string (key));
}
void PhysicsWorld::QueryRegion(const Math::Vector3 &minPoint, const Math::Vector3 &maxPoint, RegionQueryResult &result)
{
	return mBroadphase->QueryRegion(Proxy(minPoint, maxPoint), result);
}
Beispiel #10
0
Grid::Proxy Grid::operator[](int index)
{
    assert (index >= 0 && index < gridSize);
    return Proxy(dynamicGrid[index]);
}
Beispiel #11
0
Object::Proxy Object::operator[] (std::string const& key)
{
    return Proxy (*this, key);
}
UserManagementServer::UserManagementServer(void)
{
	Proxy("UserAce");
}
Beispiel #13
0
PropertyStream::Proxy PropertyStream::Map::operator[] (std::string const& key)
{
    return Proxy (*this, key);
}
Beispiel #14
0
map::Proxy map::operator[](int key)
{
	return Proxy(*this, key);
}
Beispiel #15
0
const map::Proxy map::operator[](int key) const
{
	return Proxy(const_cast<map &>(*this), key);
}
Beispiel #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;
}