Questions tagged [subobject]

If struct B has variable object pointing to struct A (In higher languages other than C this will be seen as "B extends A"), then an instance of B is said to contain an A subobject. The term generally crops up in discussions of multiple inheritance and virtual inheritance:

If struct B has variable object pointing to struct A (In higher languages other than C this will be seen as "B extends A"), then an instance of B is said to contain an A subobject. The term generally crops up in discussions of multiple inheritance and virtual inheritance:

26 questions
0
votes
0 answers

How to query data inside subobjects in MongoDB?

I need to query data in MongoBD and my JSON files look like the below. The problem is that the time/date stamp changes for every five minutes so MongoDB understands the files as having different keys, for example "2018-01-02T00:00:00+09:00" and…
Cleyson Shingu
  • 203
  • 1
  • 3
  • 9
0
votes
2 answers

C++ : Access a sub-object's methods inside an object

I am starting to code bigger objects, having other objects inside them. Sometimes, I need to be able to call methods of a sub-object from outside the class of the object containing it, from the main() function for example. So far I was using getters…
Pierre Ciholas
  • 169
  • 3
  • 12
0
votes
1 answer

How do subobjects work in C?

What is the meaning of standalone square brackets inside of a C array of a custom type? typedef enum { BAR_1 = 0, BAR_2, BAR_3, } bar_types; typedef struct { int is_interesting; int age; } foo_s; static foo_s bars[] = { …
0
votes
1 answer

Elastic Search. Search by sub-collection value

Need help with specific ES query. I have objects at Elastic Search index. Example of one of them (Participant): { "_id": null, "ObjectID": 6008, "EventID": null, "IndexName": "crmws", "version_id": 66244, …
Ilya P
  • 37
  • 1
  • 6
0
votes
1 answer

Split big object into smaller sub objects in instance

What is the pythonic way to handle large objects? In my example I could have one big class creating one instance with many attributes or I could group some of them together (See class Car and class Motor): class Car(object): color = "red" …
Wolf82
  • 23
  • 6
0
votes
1 answer

Getting child object of gameObject in unity

I have Object "Unit" with sub Objects "Monster and Health. I also have Object Tower that has sphere collider. Also I have OnTriggerEnter(Collider co) function in Tower Object that detects Unit. When it does I can for example print the name "Unit" by…
David
  • 4,332
  • 13
  • 54
  • 93
0
votes
1 answer

Count of full objects and subobjects in Python

I would like to maintain count of A and B objects, B is subclassed from A. So the counts should be specific to A and B. For example, if I create 3 A objects and 2 B objects, by virtue of constructor call, count for A becomes 3+2=5, but I would like…
Dr. Debasish Jana
  • 6,980
  • 4
  • 30
  • 69
0
votes
1 answer

Creating Sub-Objects in Python

I need to create an object and define another object's property with that object. For example, create a class called Income. Then with an Income object, define in a class called taxReturn an attribute called Income. That way, it'd be possible to…
Alex Durante
  • 71
  • 2
  • 7
0
votes
1 answer

How to access subObject properties values in c#

I am trying to loop over an object properties and values and build a string with them. The problem is i cant seem to access the values of the properties which are not string... Here is what i have so far: private string…
RealGigex
  • 346
  • 2
  • 18
0
votes
1 answer

Javascript: how to append sub-object into object?

I have tried several things, including using a constructor function, and the code below, none have worked. I thought this would be simple, how do I do this?

Creating a JavaScript Object.

sasa
  • 1
-1
votes
2 answers

Arrays and Classes?

I am new to C++ and working on a project where I have array of instances of a class, and within that class I have a struct that within that I have a function. How do I use that function within my main code block. I tried class artwork { struct…
Sam Arnold
  • 45
  • 1
  • 1
  • 10
1
2