nested

How to initialize nested structures in C++?

Hi, I have created a couple of different structures in a program. I now have a structure with nested structures however I cannot work out how to initalize them correctly.The structures are listed below. Btw, thanks in advance for reading my post or posting an answer :-) : /***POINT STRUCTURE***/ struct Point{ float x; //x ...

How can I implement Nested Master Pages in ASP.NET MVC RC2 ?

I have a main MasterPage which has a single column layout for the web application I am currently designing. I want to re-use the existing MasterPage to implement a two column layout using Nested MasterPages which was possible on previous releases of the ASP.NET MVC Framework but I can't seem to get it to work in the RC2. Any suggestion...

Using ObjectQuery Include and using a nested where clause

Using entity framework, I'm trying to get back a customer with order details but I want to filter out those Orders that are active. Customer is our EntityObject which has a collection of Order EntityObjects. CustomerDetails is our ObjectContext. The code below will attach all orders but I want to filter and only attach those that are ...

How do I nest xsl:for-each from different parts of the xml document?

I am putting an XSL together than will create a NAnt build script using as input an XML file that defines all of the items that need to be built. We have a lot of very similar projects with standard layouts and defined standards for handover areas and so having an XML file that defines what the developers want to happen rather than desc...

Nested struct in templated class with std::map::const_iterator?

The folowing code generates a syntax error at the line where the iterator is declared: template <typename T> class A { public: struct B { int x, y, z; }; void a() { std::map<int, B>::const_iterator itr; // error: ; expected before itr } std::vector<T> v; std::map<int, B> m; }; This o...

I'd like to use the "nested set model" but I'm obliged to have a GUID as primary key. How can I do without integers as pk?

I'm not aware how deep my tree will be. So I think the NSM is fit for me, reading some docs. In sql, this model suppose I'm using an integer value as primary key. I thought to create a twin table only to store the ints (PK,left,righ) connected by a relation one-to-one with the real table. Things are complicating and it is a waste of spac...

Styling nested elements in WPF

Suppose you have a nested element structure, for example a ContextMenu with MenuItems: <ContextMenu Style="{StaticResource FooMenuStyle}"> <MenuItem Style="{StaticResource FooMenuItemStyle}"/> ... </ContextMenu> You can easily apply styles or templates to the ContextMenu or MenuItem elements. But if the MenuItem style belongs ...

Persist nested jquery sortable list

The Problem: I have a nested list on my configuration page that looks like this: <a id='Save'>Save<a> <ul id='configuration-list'> <li id='e1'>Elem A <ul> <li id='ey'>Elem Y </li> <li id='ex'>Elem X <ul><!-- and so on until 5 levels of nesting --></ul> </li> <li id='ez'>Elem...

how to avoid nested switch?

I'm creating a contextual menu in javascript for a web app. The menu can appear in numerous contexts, and have different choices. I could have a different fuction for each context/choice: grid1_delete() grid1_duplicate() grid2_delete() grid2_add() grid2_duplicate() and hard code those in as the menu is being built. The thing I don't l...

Can I define Default Sort order in LinQ

If I have a nested ListView, and I'm calling a related table in LinQ, how do I sort it, without resorting to the ItemDataBound event of the parent? Pseudo Code (UPDATED WITH SOLUTION): <asp:ListView ID="lv" runat="server" OnItemDataBound="lv_ItemDataBound" > <LayoutTemplate> <!-- Product Category Stuff --> <asp:PlaceHol...

Validating nested string in java

Hi what is the best way to validate a nested string in java? sample valid string is [aaaa{bbb}] while [{ss]} is not. Thanks! ...

Nested Class Coercion Fail Between CFC and Flex

I have two AS3 classes, A and B. Class A contains an ArrayCollection that will hold multiple instances of class B. In ColdFusion, I have matching CFCs, with same-named variables in the same order, as well as cfproperty tags for each variable. The AS3 classes both use the RemoteClass metadata to associate them with their CFC counterpa...

Nested selection loading time in mysql

I have one table packets packets contains 2 fields id and total they are both bigint length 20 and primary keys only id is auto increment in every record total = id i got 10000 records let's say id = 1 - 10000 and total = 1 - 10000 i got 2 almost identical queries 1 results in a very very long loading time and one completes almost...

Creating nested makefile

I am learning makefiles and I know how to create a simple makefile. I am moving on to nested makefiles. Here is my directory structure /src ...makefile ...main.cpp ...foo ......makefile ......foo.cpp ......foo.h When root makefile is called, it calls the makefile in directory foo. Here are my questions Which makefile should I use to...

JSF: Backing Beans with nested objects?

JSF 1.1, using a backing bean with a nested objects inside I can read all properties of the nested object. For example assuming a backing bean named "foo" with a nested object "bar" can I set/write via h:form all the properties of foo.bar? I mean something like this: f:view h:form h:inputText value...

JNI signatures for nested classes?

Hi all, I'm trying to use JNI on WindowsXP, java version: java version "1.6.0_13" Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing) When trying to get jclass for a nested class jclass c = env->FindClass ("A$B"); assert (c); the second line asserts, The same thing wo...

Is this IF statement nested, or not?

input X: if (0 <= X and X < 49) output "abc" else if (50 <= X and X < 70) output "def" else if (70 <= X and X < 85) output "ghi" else if (85 <= X and X < 100) output "jkl" endif ...

Updating Nested Set

I was hoping someone could explain how one goes about updating a nested set. I've looked at http://dev.mysql.com/tech-resources/articles/hierarchical-data.html, but it really only deals with adding and deleting nodes. I need to be able to move nodes with and without child nodes. Any help would be appreciated. ...

iPhone / Objective C nested C structures

Hi, Can someone confirm that nested C structures are NOT allowed in objective C. And by nested structs, I mean the following; struct Tex2D { GLfloat u; GLfloat v; }; // quad uv cords struct TexQuad { Tex2D uv[4]; }; I seem to have all kinds of problems compiling this. It's difficult to find any documentation on this as ...

In Java, how do I access the outer class when I'm not in the inner class?

If I have an instance of an inner class, how can I access the outer class from code that is not in the inner class? I know that within the inner class, I can use Outer.this to get the outer class, but I can't find any external way of getting this. For example: public class Outer { public static void foo(Inner inner) { //Question...